package com.example.sugar.service;

import com.example.sugar.bean.UserLoginBean;
import com.example.sugar.bean.UserTypeBean;
import com.example.sugar.mapper.UserStatsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserStatsServiceImpl implements UserStatesService{

    @Autowired
    UserStatsMapper userStatsMapper;
    @Override
    public Integer selectTotalAmount(Integer date) {
        return userStatsMapper.selectTotalAmount(date);
    }

    @Override
    public UserTypeBean selectUserAction(Integer date) {
        return userStatsMapper.selectUserAction(date);
    }

    @Override
    public UserLoginBean selectUserLogin(Integer date) {
        return userStatsMapper.selectUserLogin(date);
    }
}
